import request from '@/utils/request'

export const fetchLogList = (page, size) => {
  return request({
    url: '/log/list',
    method: 'get',
    params: {
      page,
      size,
    },
  })
}

export const deleteAll = () => {
  return request({
    url: '/log/all',
    method: 'delete',
  })
}

export const remove = id => {
  return request({
    url: `/log/${id}`,
    method: 'delete',
  })
}
